package com.leadingsoft.pwxk.converter;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.AirPollutionNoOrgDto;
import com.leadingsoft.pwxk.model.AirPollutionNoOrg;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class AirPollutionNoOrgConverter extends AbstractConverter<AirPollutionNoOrg, AirPollutionNoOrgDto> {

	@Override
	protected AirPollutionNoOrgDto toDtoActual(AirPollutionNoOrg model) {

		AirPollutionNoOrgDto dto = new AirPollutionNoOrgDto();
		BeanUtils.copyProperties(model, dto);

		return dto;
	}

	public void copyProperties(AirPollutionNoOrg model, AirPollutionNoOrgDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());

	}

}
